package com.spring.common.web.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import com.spring.common.web.requestModel.ProductPromotion;
import com.spring.security.web.model.BaseResult;
import com.sso.api.web.model.RequestUser;

public interface CommonService {
	Map<String, Object> getServiceIntroduction(String service_type_code)throws Exception;
	Map<String, Object> getRegionList() throws Exception;
	Map<String, Object> getChildrenRegionList(String id) throws Exception;
	Map<String, Object> getKidsParkList(String id) throws Exception;
	Map<String, Object> getDataDictionaryList(String type);
	
	List<Map<String,Object>> checkFilesToken(@Param(value="token") String token);
	List<Map<String,Object>> checkVideosToken(@Param(value="token") String token);
	List<Map<String,Object>> queryFileById(@Param(value="id") String id);
	int addOssFile(Map<String,Object> m);
	int updateOssFile(Map<String,Object> m);
	int addVideosFile(Map<String, Object> im);
	int updateVideosFile(Map<String, Object> im);
	List<Map<String, Object>> queryDepartmentPark(String dept_id);
	Map<String, Object> getBannerList(String bannerType) throws Exception;
	List<Map<String, Object>> queryUserByDeptId(String dept_id,String shopDeptId,String priv_id);
	List<Map<String, Object>> queryCustomerSelByOaUser(String oaUserId);
	String getKidParkIDByDeptID(String deptID);
	Map<String, Object> getBusinessTypeCode() ;
	Map<String, Object> addUser(RequestUser user) throws Exception;
	
	Map<String, Object> saveOrUpdateProductPromotion(ProductPromotion  productPromotion) throws Exception;
	Map<String, Object> getFamilyDetail(String phone,String card_number,String member_number,String c_user_id) throws Exception;
	List<Map<String, Object>> getBusinessTypeCode2() ;
	
	Map<String, Object> checkFingerExist(String c_user_id) throws Exception ;
	
	BaseResult updateReadCount(String id,String type);
	
	void checkIsNewAddr(String id,String type,HttpServletRequest request) throws Exception;
	BaseResult updatePhone(String cUserID,String newPhone) throws Exception;
}
